package com.iotproject.eduservice.client;

import com.iotproject.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

//FeignClient注解用于指定从哪个服务中调用功能，名称与被调用的服务名保持一致
@FeignClient(name = "service-vod", fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodClient {

 /*@DeleteMapping("/eduvod/video/hello/{id}")
 public R hello(@PathVariable("id") String id);*/

 @DeleteMapping("/eduvod/video/removeAlyVideo/{id}")
 public R deleteAlyiVideo(@PathVariable("id") String id);

}
